using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AutoMapper;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using Hsp.WebNovels.Common.Constants;
using Hsp.WebNovels.Common.Utility;
using Hsp.WebNovels.Model;
using Hsp.WebNovels.Model.Data;
using Hsp.WebNovels.Model.Dtos;
using Hsp.WebNovels.Model.Models;
using Hsp.WebNovels.Model.Extensions;
using Hsp.WebNovels.Web.Utility;
using System.Web;

namespace Hsp.WebNovels.Web.Areas.Contents.Controllers
{
    [Area("Contents")]
    [Route("Contents/{controller}/{action = Index}/{id?}")]
    /// <summary>
    /// {areaName}区域基类控制器
    /// </summary>
    public class AreaBaseController : BaseController
    {
        #region 构造函数及方法注入
        
        private readonly IMapper _mapper;
        private readonly ILogger<AreaBaseController> _logger;
        private readonly NovelsContext _context;
        
        /// <summary>
        /// {areaName}区域基类控制器构造函数
        /// </summary>
        public AreaBaseController(ILogger<AreaBaseController> logger, NovelsContext context, IMapper mapper) : base(logger, context, mapper)
        {
            this._mapper = mapper;
            this._logger = logger;
            this._context = context;
        }
        
        #endregion
        
    }
}
